package com.aaa.web.dao.ifinancedao;

import com.aaa.entity.BackExpenseorder;
import com.aaa.entity.repair.BackEntrepotrecordCll;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName IFinanceInfoDao
 * @Description 财务统计
 * @Author caolinlin
 * @Date 2018/12/27 16:15
 **/
@Mapper
@Component
public interface IFinanceInfoDao {

    /**
     * 月收入支出
     * @param years
     * @return
     */
    List<BackExpenseorder> getFinanceInAndOut(@Param("years") String years,@Param("schoolId")int schoolId);

    /**
     * 年收入类型
     * @param years
     * @return
     */
    List<BackExpenseorder> getFinanceInFrom(@Param("years")String years,@Param("schoolId")int schoolId);

    /**
     * 月支出类型
     * @param years
     * @return
     */
    List<BackEntrepotrecordCll> getFinanceOutFrom(@Param("years")String years,@Param("schoolId")int schoolId);
}
